<html>
    <head>
        <meta name="layout" content="main" />
        <title>Widgary : Create Person</title>         
    </head>
    <body>
        <div class="body">
            <h1>Create Person</h1>
            <g:render template="/shared/messages" />
            <g:hasErrors bean="${person}">
                <div class="errors">
                    <g:renderErrors bean="${person}" as="list" />
                </div>
            </g:hasErrors>
            <g:form action="save" method="post" >
                <div class="dialog">
                    <table>
                        <tbody>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="name">Name:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: person, field: 'name', 'errors')}">
                                    <input type="text" size="40" maxlength="40" id="name" name="name" value="${fieldValue(bean: person, field: 'name')}"/>
                                </td>
                            </tr> 
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="motto">Motto:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: person, field: 'motto', 'errors')}">
                                    <input type="text" size="40" maxlength="80" id="motto" name="motto" value="${fieldValue(bean: person, field: 'motto')}"/>
                                </td>
                            </tr> 
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="password">Password:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: person, field: 'password', 'errors')}">
                                    <input type="password" size="40" maxlength="40" id="password" name="password" value="${fieldValue(bean: person, field: 'password')}"/>
                                </td>
                            </tr> 
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="password">Password confirmation:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: person, field: 'passwordConfirmation', 'errors')}">
                                    <input type="password" size="40" maxlength="40" id="passwordConfirmation" name="passwordConfirmation" value="${fieldValue(bean: person, field: 'passwordConfirmation')}"/>
                                </td>
                            </tr>
                            <tr>
                                <td valign="top" class="buttons" colspan="2">
                                    <span class="button"><input class="save" type="submit" value="Create" /></span>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </g:form>
        </div>
    </body>
</html>
